//
//  XMGSquareCell.m
//  BuDeJie
//
//  Created by 陈恒均 on 2018/1/25.
//  Copyright © 2018年 小码哥. All rights reserved.
//

#import "XMGSquareCell.h"
#import "XMGSquareItem.h"
#import <UIImageView+WebCache.h>

@interface XMGSquareCell()
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end

@implementation XMGSquareCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setItem:(XMGSquareItem *)item
{
    _item = item;
    [self.iconView sd_setImageWithURL:[NSURL URLWithString:item.icon]];
    self.titleLabel.text = item.name;
}

@end
